package request

type TmallServicecenterWorkcardLogisticsorderQueryRequest struct {
	/*
	   物流单号     */
	LogisticsOrderId *int64 `json:"logistics_order_id" required:"true" `
	/*
	   是否查询新物流，不填默认查原有物流     */
	NewLogistics *bool `json:"new_logistics,omitempty" required:"false" `
}

func (s *TmallServicecenterWorkcardLogisticsorderQueryRequest) SetLogisticsOrderId(v int64) *TmallServicecenterWorkcardLogisticsorderQueryRequest {
	s.LogisticsOrderId = &v
	return s
}
func (s *TmallServicecenterWorkcardLogisticsorderQueryRequest) SetNewLogistics(v bool) *TmallServicecenterWorkcardLogisticsorderQueryRequest {
	s.NewLogistics = &v
	return s
}

func (req *TmallServicecenterWorkcardLogisticsorderQueryRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.LogisticsOrderId != nil {
		paramMap["logistics_order_id"] = *req.LogisticsOrderId
	}
	if req.NewLogistics != nil {
		paramMap["new_logistics"] = *req.NewLogistics
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardLogisticsorderQueryRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
